<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252" />
<meta name="description" content="" />
<meta name="generator" content="HTML-Kit" />
<title>Automated Medical Electronic System</title>
<?php
	if(isset($javascript)){		
		echo $javascript->link("jquery-1.3.2.js");
		echo $javascript->link("uploadify/jquery.uploadify.v2.1.0.js");
		echo $javascript->link("uploadify/swfobject.js");
		echo $javascript->link("jquery.simplemodal.js");
		echo $javascript->link("myFunction.js");
	}	
    echo $html->css('layout.css');
    echo $html->css('color.css');
    echo $html->css('uploadify.css');
    echo $html->css('basic.css');
    echo $html->css('basic_ie.css');       
?>
</head>
<body>
<div id="perm-links">
<ul>
<li><a href="/ames">Home</a></li>
<li><a href="#">Search</a></li>
<?php if($session->read('username')==""){?>
<li><a href="/ames/users/logoff">Log In</a></li>
<?php }else{?>
<li><a href="/ames/users/logoff">Log Off</a></li>
<?php }?>
</ul>
</div>

<h1 id="top">Automated Medical Electronic System</h1>

<div id="inside">
    <div id="main-menu">        
        <?php echo $this->renderElement('menu');?>
    </div>

    <div id="content">
        <div align="right">
        	<?php if($session->read('username')!=""){?>
        	<h5 class="info-title" style="paddin-right">Welcome, <label style="color: #2F4860"><?php echo $session->read('username');?></label></h5>
        	<?php }else{ ?>
        	<h5 class="info-title" style="paddin-right">Philippines Health Insurance Corporation</h5>
        	<?php }?>
       	</div>
        <div class="page">
        	<?php echo $content_for_layout; ?>
        </div>         
    </div>
</div><!-- end of inside -->
<div id="footer">
  <h5>Public Domain / No Copyright<br />
Designed by <a href="http://www.free-css-templates.com/">Free CSS Templates</a>, Thanks to <a href="http://www.legalhelpers.com/chapter-13-bankruptcy/chapter13.html">Chapter 13 Bankruptcy</a></h5>
</div>
</body>
</html>